﻿using OnDash.Mathematics.Vector;

namespace OnDash.Windowing.Common.Events;

public readonly struct WindowPositionEventArgs(Vector2 position)
{
    public Vector2 Position { get; } = position;

    public int X => (int)Position.X;
    public int Y => (int)Position.Y;

    public WindowPositionEventArgs(int x, int y)
        : this(new Vector2(x, y))
    {
    }
}